import request from '@/utils/request'

//登录
export function login(data) {
  return request({
    url: '/account/login',
    method: 'post',
    data: data
  })
}

//发送验证码
export function sendSMS(mobile) {
  return request({
    url: '/verifycode/send',
    method: 'post',
    data: {
      'mobile': mobile,
      'scene': 'LOGIN'
    }
  })
}

//退出登录
export function logout() {
  return request({
    url: '/account/logout',
    method: 'get',
  })
}